#ifndef _MIXP_CONFIG_H
#define _MIXP_CONFIG_H

#include "core/log/mixp_log.h"
#include "gear-lib/libmacro.h"
#include "core/mixp_core.h"
#include "gear-lib/libskt.h"
#include "gear-lib/libgevent.h"
#include "gear-lib/libhash.h"
#include "core/config/mixp_config.h"
#include "module/mixp_module_manager.h"
#include "core/protocol/mixp_packet.h"

#define LOG_VERBOSE_ENABLE
#define MIXP_CONF_PATH "conf/app.json"
#define PROCESS_ID_INVALID -1

typedef struct mixp_module mixp_module_t;

typedef struct mixp_worker_info
{
    int pid;
    int fd;
    int count; // 正在进行中的任务数
    int total; // 拥有的线程数
    mixp_packet_t *req;
    mixp_module_t *module;
    struct gevent *ev;

    struct list_head entry;
} mixp_worker_info_t;

#endif
